<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>{$data.name}</title>
    <link rel="stylesheet" href="__STATIC__assets/libs/layui/css/layui.css"/>
    <link rel="stylesheet" href="__STATIC__assets/module/admin.css?v=318"/>
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
      <style>
        #formAdvForm .layui-form-item {
            margin-top: 20px;
            margin-bottom: 0;
        }

        #formAdvForm .layui-form-item .layui-inline {
            margin-bottom: 25px;
            margin-right: 0;
        }

        .form-group-bottom {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 10px 20px;
            background-color: #fff;
            box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, .05);
        }
    </style>
</head>
<body>
<!-- 正文开始 -->
<form class="layui-form" id="formAdvForm" lay-filter="formAdvForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">通知配置</div>
            <div class="layui-card-body">

                <div class="layui-form-item layui-row">
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">登陆通知:</label>
                        <div class="layui-input-block">
                            
                            <textarea name="tz_denglu" placeholder="请输入平台登录后首页用户公告通知（换行代码：<br>）" class="layui-textarea" lay-vertype="tips">{$data.tz_denglu}</textarea>
                        </div>
                    </div>
                    
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">通道提示:</label>
                        <div class="layui-input-block">
                           <textarea name="tz_todao" placeholder="请输入通道页面文字通知（换行代码：<br>）" class="layui-textarea" lay-vertype="tips">{$data.tz_todao}</textarea>
                        </div>
                    </div>
                    
                     <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">账号提示:</label>
                        <div class="layui-input-block">
                            <textarea name="tz_zhanghao" placeholder="请输入账号页面文字通知（换行代码：<br>）" class="layui-textarea" lay-vertype="tips">{$data.tz_zhanghao}</textarea>
                        </div>
                    </div>
                    
                     <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">余额提示:</label>
                        <div class="layui-input-block">
                            <textarea name="tz_yue" placeholder="请输入余额页面文字通知（换行代码：<br>）" class="layui-textarea" lay-vertype="tips">{$data.tz_yue}</textarea>
                        </div>
                    </div>
                    
                </div>

            </div>
        </div>

    <div class="form-group-bottom text-right">
        <button type="reset" class="layui-btn layui-btn-primary">&emsp;重置&emsp;</button>
        <button class="layui-btn" lay-filter="formAdvSubmit" lay-submit>&emsp;提交&emsp;</button>
    </div>

</form>
            <!-- //表单结束 -->
        </div>
    </div>
</div>

<!-- js部分 -->
<script type="text/javascript" src="__STATIC__assets/libs/layui/layui.js"></script>
<script type="text/javascript" src="__STATIC__assets/js/common.js?v=318"></script>
<script>
    layui.use(['layer', 'form', 'laydate'], function () {
        var $ = layui.jquery;
        var layer = layui.layer;
        var form = layui.form;
        /* 监听表单提交 */
        form.on('submit(formAdvSubmit)', function (data) {
            var loadIndex = layer.load(2);
                $.post('msg', data.field, function (res) {
                layer.close(loadIndex);
                if (1 == res.code) {                                
                    layer.msg(res.msg, {icon: 1});
                    insTb.reload({page: {curr: 1}});
                } else {
                    layer.msg(res.msg, {icon: 2});
                }
            }, 'json');
            return false;
        });

    });
</script>
</body>
</html>